package com.fifth.apartment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("permission")
@ApiModel("权限")
public class Permission {
    @ApiModelProperty("权限id")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("权限名")
    @TableField("name")
    private String name;

    @ApiModelProperty("等级")
    @TableField("level")
    private Integer level;

    @ApiModelProperty("权限关键字")
    @TableField("keyword")
    private String keyword;

    @ApiModelProperty("描述")
    @TableField("remark")
    private String remark;

}
